Filename | (eval 436)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
Statements | Executed 56 statements in 1.03ms |
Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 2 | 2 | 100µs | 12.2ms | new | JSON::Schema::Modern::Result::
1 | 1 | 1 | 31µs | 139µs | BEGIN@15.337 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 17µs | 23µs | BEGIN@139 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 13µs | 13µs | BEGIN@20.338 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 6µs | 27µs | BEGIN@75 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 5µs | 13µs | BEGIN@123 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 5µs | 12µs | BEGIN@99 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 4µs | 14µs | BEGIN@163 | JSON::Schema::Modern::Result::
1 | 1 | 1 | 2µs | 10µs | BEGIN@131 | JSON::Schema::Modern::Result::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | 2 | 2µs | my $coerce_for_exception = ${$_[1]->{"\$coerce_for_exception"}}; | ||
3 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
4 | 1 | 1µs | my $isa_check_for_valid = ${$_[1]->{"\$isa_check_for_valid"}}; | ||
5 | 1 | 0s | my $isa_check_for_annotations = ${$_[1]->{"\$isa_check_for_annotations"}}; | ||
6 | 1 | 0s | my $isa_check_for_exception = ${$_[1]->{"\$isa_check_for_exception"}}; | ||
7 | 1 | 0s | my $isa_check_for_formatted_5fannotations = ${$_[1]->{"\$isa_check_for_formatted_5fannotations"}}; | ||
8 | 1 | 0s | my $coerce_for_annotations = ${$_[1]->{"\$coerce_for_annotations"}}; | ||
9 | 1 | 1µs | my $coerce_for_errors = ${$_[1]->{"\$coerce_for_errors"}}; | ||
10 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
11 | 1 | 0s | my $isa_check_for_output_5fformat = ${$_[1]->{"\$isa_check_for_output_5fformat"}}; | ||
12 | 1 | 0s | my $isa_check_for_errors = ${$_[1]->{"\$isa_check_for_errors"}}; | ||
13 | 1 | 0s | my $coerce_for_valid = ${$_[1]->{"\$coerce_for_valid"}}; | ||
14 | package JSON::Schema::Modern::Result; | ||||
15 | 2 | 68µs | 2 | 247µs | # spent 139µs (31+108) within JSON::Schema::Modern::Result::BEGIN@15.337 which was called:
# once (31µs+108µs) by Sub::Quote::_clean_eval at line 15 # spent 139µs making 1 call to JSON::Schema::Modern::Result::BEGIN@15.337
# spent 108µs making 1 call to warnings::unimport |
16 | # spent 12.2ms (100µs+12.1) within JSON::Schema::Modern::Result::new which was called 2 times, avg 6.10ms/call:
# once (33µs+9.01ms) by JSON::Schema::Modern::evaluate at line 398 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm
# once (67µs+3.08ms) by JSON::Schema::Modern::evaluate at line 177 of Sub/Defer.pm | ||||
17 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
18 | # BEGIN quote_sub PRELUDE | ||||
19 | package JSON::Schema::Modern::Result; | ||||
20 | # spent 13µs within JSON::Schema::Modern::Result::BEGIN@20.338 which was called:
# once (13µs+0s) by Sub::Quote::_clean_eval at line 25 | ||||
21 | 1 | 2µs | $^H = 2018; | ||
22 | 1 | 0s | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
23 | 1 | 5µs | %^H = ( | ||
24 | ); | ||||
25 | 1 | 262µs | 1 | 13µs | } # spent 13µs making 1 call to JSON::Schema::Modern::Result::BEGIN@20.338 |
26 | # END quote_sub PRELUDE | ||||
27 | 1 | 1µs | my $invoker = CORE::shift(); | ||
28 | 1 | 0s | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
29 | 1 | 0s | if ($class ne "JSON::Schema::Modern::Result") { | ||
30 | if ($Moo::MAKERS{$class}) { | ||||
31 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
32 | package JSON::Schema::Modern::Result; | ||||
33 | return $invoker->SUPER::new(@_); | ||||
34 | } | ||||
35 | Moo->_constructor_maker_for($class); | ||||
36 | return $invoker->new(@_); | ||||
37 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
38 | return $meta->new_object( | ||||
39 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
40 | : $class->Moo::Object::BUILDARGS(@_) | ||||
41 | ); | ||||
42 | } | ||||
43 | } | ||||
44 | my $args = scalar @_ == 1 | ||||
45 | ? CORE::ref $_[0] eq 'HASH' | ||||
46 | 1 | 2µs | ? { %{ $_[0] } } | ||
47 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
48 | . " data => ". $_[0]) | ||||
49 | : @_ % 2 | ||||
50 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
51 | . " key/value list. You passed an odd number of arguments") | ||||
52 | : {@_} | ||||
53 | ; | ||||
54 | 1 | 1µs | my $new = bless({}, $class);; | ||
55 | (exists $args->{"annotations"} and ($new->{"annotations"} = scalar do { my $value = do { | ||||
56 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
57 | init_arg => "annotations", | ||||
58 | name => "annotations", | ||||
59 | step => "coercion", | ||||
60 | }; | ||||
61 | (my $_return), | ||||
62 | (my $_error), (my $_old_error = $@); | ||||
63 | (eval { | ||||
64 | ($@ = $_old_error), | ||||
65 | ($_return = | ||||
66 | $coerce_for_annotations->($args->{"annotations"})), | ||||
67 | 1 | ||||
68 | } or | ||||
69 | $_error = CORE::ref $@ ? $@ : "coercion for \"annotations\" failed: ".$@); | ||||
70 | ($@ = $_old_error), | ||||
71 | (defined $_error and CORE::die $_error); | ||||
72 | $_return; | ||||
73 | } | ||||
74 | ; | ||||
75 | 2 | 147µs | 2 | 48µs | # spent 27µs (6+21) within JSON::Schema::Modern::Result::BEGIN@75 which was called:
# once (6µs+21µs) by Sub::Quote::_clean_eval at line 75 # spent 27µs making 1 call to JSON::Schema::Modern::Result::BEGIN@75
# spent 21µs making 1 call to warnings::unimport |
76 | $value | ||||
77 | } | ||||
78 | )), | ||||
79 | (exists $args->{"errors"} and ($new->{"errors"} = scalar do { my $value = do { | ||||
80 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
81 | init_arg => "errors", | ||||
82 | name => "errors", | ||||
83 | step => "coercion", | ||||
84 | }; | ||||
85 | (my $_return), | ||||
86 | (my $_error), (my $_old_error = $@); | ||||
87 | (eval { | ||||
88 | ($@ = $_old_error), | ||||
89 | ($_return = | ||||
90 | $coerce_for_errors->($args->{"errors"})), | ||||
91 | 1 | ||||
92 | } or | ||||
93 | $_error = CORE::ref $@ ? $@ : "coercion for \"errors\" failed: ".$@); | ||||
94 | ($@ = $_old_error), | ||||
95 | (defined $_error and CORE::die $_error); | ||||
96 | $_return; | ||||
97 | } | ||||
98 | ; | ||||
99 | 2 | 96µs | 2 | 19µs | # spent 12µs (5+7) within JSON::Schema::Modern::Result::BEGIN@99 which was called:
# once (5µs+7µs) by Sub::Quote::_clean_eval at line 99 # spent 12µs making 1 call to JSON::Schema::Modern::Result::BEGIN@99
# spent 7µs making 1 call to warnings::unimport |
100 | $value | ||||
101 | } | ||||
102 | )), | ||||
103 | (exists $args->{"exception"} and ($new->{"exception"} = scalar do { my $value = do { | ||||
104 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
105 | init_arg => "exception", | ||||
106 | name => "exception", | ||||
107 | step => "coercion", | ||||
108 | }; | ||||
109 | (my $_return), | ||||
110 | (my $_error), (my $_old_error = $@); | ||||
111 | (eval { | ||||
112 | ($@ = $_old_error), | ||||
113 | ($_return = | ||||
114 | $coerce_for_exception->($args->{"exception"})), | ||||
115 | 1 | ||||
116 | } or | ||||
117 | $_error = CORE::ref $@ ? $@ : "coercion for \"exception\" failed: ".$@); | ||||
118 | ($@ = $_old_error), | ||||
119 | (defined $_error and CORE::die $_error); | ||||
120 | $_return; | ||||
121 | } | ||||
122 | ; | ||||
123 | 2 | 47µs | 2 | 21µs | # spent 13µs (5+8) within JSON::Schema::Modern::Result::BEGIN@123 which was called:
# once (5µs+8µs) by Sub::Quote::_clean_eval at line 123 # spent 13µs making 1 call to JSON::Schema::Modern::Result::BEGIN@123
# spent 8µs making 1 call to warnings::unimport |
124 | $value | ||||
125 | } | ||||
126 | )), | ||||
127 | ($new->{"formatted_annotations"} = scalar do { my $value = ( | ||||
128 | exists $args->{"formatted_annotations"} | ||||
129 | 1 | 0s | ? $args->{"formatted_annotations"} | ||
130 | : 1); | ||||
131 | 5 | 47µs | 2 | 18µs | # spent 10µs (2+8) within JSON::Schema::Modern::Result::BEGIN@131 which was called:
# once (2µs+8µs) by Sub::Quote::_clean_eval at line 131 # spent 10µs making 1 call to JSON::Schema::Modern::Result::BEGIN@131
# spent 8µs making 1 call to warnings::unimport |
132 | $value | ||||
133 | } | ||||
134 | ), | ||||
135 | ($new->{"output_format"} = scalar do { my $value = ( | ||||
136 | exists $args->{"output_format"} | ||||
137 | 1 | 0s | ? $args->{"output_format"} | ||
138 | : "basic"); | ||||
139 | 5 | 132µs | 3 | 32µs | # spent 23µs (17+6) within JSON::Schema::Modern::Result::BEGIN@139 which was called:
# once (17µs+6µs) by Sub::Quote::_clean_eval at line 139 # spent 23µs making 1 call to JSON::Schema::Modern::Result::BEGIN@139
# spent 6µs making 1 call to warnings::unimport
# spent 3µs making 1 call to Type::Tiny::CORE:match |
140 | $value | ||||
141 | } | ||||
142 | ), | ||||
143 | 1 | 0s | (exists $args->{"valid"} and ($new->{"valid"} = scalar do { my $value = do { | ||
144 | 1 | 2µs | local $Method::Generate::Accessor::CurrentAttribute = { | ||
145 | init_arg => "valid", | ||||
146 | name => "valid", | ||||
147 | step => "coercion", | ||||
148 | }; | ||||
149 | 1 | 1µs | (my $_return), | ||
150 | (my $_error), (my $_old_error = $@); | ||||
151 | 1 | 0s | (eval { | ||
152 | ($@ = $_old_error), | ||||
153 | ($_return = | ||||
154 | 1 | 13µs | 1 | 30µs | $coerce_for_valid->($args->{"valid"})), # spent 30µs making 1 call to JSON::Schema::Modern::Result::__ANON__[/Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Result.pm:38] |
155 | 1 | ||||
156 | } or | ||||
157 | $_error = CORE::ref $@ ? $@ : "coercion for \"valid\" failed: ".$@); | ||||
158 | 1 | 1µs | ($@ = $_old_error), | ||
159 | (defined $_error and CORE::die $_error); | ||||
160 | 1 | 1µs | $_return; | ||
161 | } | ||||
162 | ; | ||||
163 | 5 | 154µs | 4 | 26µs | # spent 14µs (4+10) within JSON::Schema::Modern::Result::BEGIN@163 which was called:
# once (4µs+10µs) by Sub::Quote::_clean_eval at line 163 # spent 14µs making 1 call to JSON::Schema::Modern::Result::BEGIN@163
# spent 10µs making 1 call to warnings::unimport
# spent 1µs making 1 call to Scalar::Util::blessed
# spent 1µs making 1 call to UNIVERSAL::isa |
164 | $value | ||||
165 | } | ||||
166 | )), | ||||
167 | (($args)[0]->{__no_BUILD__} or ( | ||||
168 | 1 | 38µs | 1 | 3.05ms | $new->JSON::Schema::Modern::Result::BUILD($args), # spent 3.05ms making 1 call to JSON::Schema::Modern::Result::BUILD |
169 | )), | ||||
170 | return $new; | ||||
171 | } | ||||
172 | 1 | 1µs | $$_UNQUOTED = \&new; | ||
173 | } | ||||
174 | 1 | 6µs | 1; | ||
175 | |||||
176 | ; |